package com.yonxao.demo.crud.annotation.serializer;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 浮点数 * 100 后转换为 Long
 * <p>
 * 注：浮点数只能是2位小数
 *
 * @author xiaosaguo
 * @date 2020/09/08 20:12
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
@JacksonAnnotationsInside
@JsonDeserialize(using = FloatMultiplyHundredToLongJsonDeserializer.class)
public @interface FloatMultiplyHundredToLong {
}